﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="FormRubros.aspx.cs" Inherits="FormRubros" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	
       <div id="contend">
            <asp:GridView ID="grvdRubros" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" DataKeyNames="iTipoActivo_id" DataSourceID="SqlDataSourceRubros" ForeColor="Black" GridLines="Horizontal" UseAccessibleHeader="False">
                <Columns>
                    
                    <asp:BoundField DataField="iVidaUtil" HeaderText="iVidaUtil" SortExpression="iVidaUtil" />
                    <asp:BoundField DataField="iCoeficiente_despr" HeaderText="iCoeficiente_despr" SortExpression="iCoeficiente_despr" />
                    <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                </Columns>
                <FooterStyle BackColor="#CCCCCC" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Right" BorderColor="White" BorderStyle="Groove" />
                <RowStyle BackColor="White" />
                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#808080" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#383838" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSourceRubros" runat="server" ConflictDetection="CompareAllValues" ConnectionString="<%$ ConnectionStrings:bd_ActivosFijosConnectionString %>" DeleteCommand="DELETE FROM [Tbl_TiposActivosFijos] WHERE [iTipoActivo_id] = @original_iTipoActivo_id AND [sTipoActivo] = @original_sTipoActivo AND [iVidaUtil] = @original_iVidaUtil AND [iCoeficiente_despr] = @original_iCoeficiente_despr AND [dtFecha] = @original_dtFecha AND [iCreadoPor] = @original_iCreadoPor" InsertCommand="INSERT INTO [Tbl_TiposActivosFijos] ([sTipoActivo], [iVidaUtil], [iCoeficiente_despr], [dtFecha], [iCreadoPor]) VALUES (@sTipoActivo, @iVidaUtil, @iCoeficiente_despr, @dtFecha, @iCreadoPor)" OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [Tbl_TiposActivosFijos]" UpdateCommand="UPDATE [Tbl_TiposActivosFijos] SET [sTipoActivo] = @sTipoActivo, [iVidaUtil] = @iVidaUtil, [iCoeficiente_despr] = @iCoeficiente_despr, [dtFecha] = @dtFecha, [iCreadoPor] = @iCreadoPor WHERE [iTipoActivo_id] = @original_iTipoActivo_id AND [sTipoActivo] = @original_sTipoActivo AND [iVidaUtil] = @original_iVidaUtil AND [iCoeficiente_despr] = @original_iCoeficiente_despr AND [dtFecha] = @original_dtFecha AND [iCreadoPor] = @original_iCreadoPor">
                <DeleteParameters>
                    <asp:Parameter Name="original_iTipoActivo_id" Type="Int32" />
                    <asp:Parameter Name="original_sTipoActivo" Type="String" />
                    <asp:Parameter Name="original_iVidaUtil" Type="Int32" />
                    <asp:Parameter Name="original_iCoeficiente_despr" Type="Int32" />
                    <asp:Parameter Name="original_dtFecha" Type="DateTime" />
                    <asp:Parameter Name="original_iCreadoPor" Type="Int32" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="sTipoActivo" Type="String" />
                    <asp:Parameter Name="iVidaUtil" Type="Int32" />
                    <asp:Parameter Name="iCoeficiente_despr" Type="Int32" />
                    <asp:Parameter Name="dtFecha" Type="DateTime" />
                    <asp:Parameter Name="iCreadoPor" Type="Int32" />
                </InsertParameters>
                <UpdateParameters>
                    <asp:Parameter Name="sTipoActivo" Type="String" />
                    <asp:Parameter Name="iVidaUtil" Type="Int32" />
                    <asp:Parameter Name="iCoeficiente_despr" Type="Int32" />
                    <asp:Parameter Name="dtFecha" Type="DateTime" />
                    <asp:Parameter Name="iCreadoPor" Type="Int32" />
                    <asp:Parameter Name="original_iTipoActivo_id" Type="Int32" />
                    <asp:Parameter Name="original_sTipoActivo" Type="String" />
                    <asp:Parameter Name="original_iVidaUtil" Type="Int32" />
                    <asp:Parameter Name="original_iCoeficiente_despr" Type="Int32" />
                    <asp:Parameter Name="original_dtFecha" Type="DateTime" />
                    <asp:Parameter Name="original_iCreadoPor" Type="Int32" />
                </UpdateParameters>
            </asp:SqlDataSource>
    	</div>
   

</asp:Content>

